// 以下文件格式为描述路由的协议格式
// 你可以调整 routerConfig 里的内容
// 变量名 routerConfig 为 iceworks 检测关键字，请不要修改名称

import HeaderAsideFooterResponsiveLayout from "./layouts/HeaderAsideFooterResponsiveLayout";
import Home from "./pages/Home";
import NotFound from "./pages/NotFound";
import CuisineComment from "./pages/CuisineComment";
import CanteenComment from "./pages/CanteenComment";
import Login from "./pages/Login";
import BlankLayout from "./layouts/BlankLayout";
import UserList from "./pages/UserList";
import AdminList from "./pages/AdminList";
import CreateAdmin from "./pages/CreateAdmin";
import Feedback from "./pages/Feedback";

import Activity from "./pages/Activity";

import CreateActivity from "./pages/CreateActivity";

import Registers from "./pages/Registers";

const routerConfig = [
  {
    path: "/",
    layout: HeaderAsideFooterResponsiveLayout,
    component: Home
  },
  {
    path: "/comment",
    layout: HeaderAsideFooterResponsiveLayout,
    component: CuisineComment,
    children: [
      {
        path: "cuisine",
        layout: HeaderAsideFooterResponsiveLayout,
        component: CuisineComment
      },
      {
        path: "canteen",
        layout: HeaderAsideFooterResponsiveLayout,
        component: CanteenComment
      }
    ]
  },
  {
    path: "/user",
    layout: HeaderAsideFooterResponsiveLayout,
    component: UserList,
    children: [
      {
        path: "userList",
        layout: HeaderAsideFooterResponsiveLayout,
        component: UserList
      },
      {
        path: "adminList",
        layout: HeaderAsideFooterResponsiveLayout,
        component: AdminList
      },
      {
        path: "createAdmin",
        layout: HeaderAsideFooterResponsiveLayout,
        component: CreateAdmin
      }
    ]
  },
  {
    path: "/login",
    layout: BlankLayout,
    component: Login
  },
  {
    path: "/Registers",
    layout: BlankLayout,
    component: Registers
  },
  {
    path: "/activity",
    layout: HeaderAsideFooterResponsiveLayout,
    component: Activity,
    children: [
      {
        path: "list",
        layout: HeaderAsideFooterResponsiveLayout,
        component: Activity
      },
      {
        path: "createActivity",
        layout: HeaderAsideFooterResponsiveLayout,
        component: CreateActivity
      }
    ]
  },
  {
    path: "/feedback",
    layout: HeaderAsideFooterResponsiveLayout,
    component: Feedback
  },
  {
    path: "*",
    layout: HeaderAsideFooterResponsiveLayout,
    component: NotFound
  }
];

export default routerConfig;
